package com.qf.week1.day02;

/**
 * 1-100以内的数相加的总和
 */
public class AddDemo {
    public static void main(String[] args) {
        int sum = 0;
        for(int i = 0;i<=100;i++){
            sum+=i;
        }
        System.out.println("1-100总和="+sum);
    }
}
